.lg-table{
  @vertical: var(--app-space-vertical);
  @horizontal: var(--app-space-horizontal);
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;

  .lg-table-hover {
    &:hover {
      opacity: 0.75;
    }
  }

  .lg-table-search {
    transition: height 0.5s;
    overflow: hidden;
  }
  // 搜索栏
  .lg-table-search-bar {
    margin-bottom: @vertical;
  }

  // 表格容器
  .lg-table-body {
    flex: 1;
    .lg-auto-size-box {
      padding: @vertical @horizontal;
      background: var(--app-color-bg-primary);
      border-radius: var(--app-border-radius);
      display: flex;
      flex-direction: column;
    }
  }

  // 工具栏
  .lg-table-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: @vertical;
    .lg-table-toolbar-left {
      display: flex;
      flex: 1;
    }
    .lg-table-toolbar-right {
      display: flex;
      justify-content: flex-end;
    }
    .lg-table-toolbar-left,
    .lg-table-toolbar-right {
      height: var(--app-height-component);
      align-items: center;
    }
    .table-controller {
      .t-icon {
        width: 1.3em;
        height: 1.3em;
        cursor: pointer;
        color: var(--app-color-primary);
      }
    }
  }
  // 已选数据栏
  .lg-table-alert {
    margin-bottom: @vertical;
    .t-alert {
      height: var(--app-height-component);
      line-height: var(--app-height-component);
      padding: 0 @horizontal;
      border-radius: var(--app-border-radius);
      align-items: center;
    }
  }
  // 表格
  .t-table {
    overflow: hidden;
    border-radius: 0 var(--app-border-radius);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    .t-table__header {
      min-height: var(--app-height-component);
    }
  }
  // 分页
  .lg-table-pagination {
    padding: 0;
    margin-top: @vertical;
  }

  // 图片列
  .lg-table-img {
    max-width: 100%;
    max-height: var(--app-height-component);
  }
  // 操作列
  .lg-table-actionbar {

  }
}

.lg-table-clear .lg-table-body .lg-auto-size-box {
  padding: 0;
}
